
package net.atremmedia.gwt.actionjava.examples.tween.samples;

import net.atremmedia.gwt.actionjava.examples.AJExample;
import net.atremmedia.gwt.actionjava.examples.frame.AJExampleOverview;
import actionjava.display.Graphics;
import actionjava.display.Shape;
import actionjava.geom.Color;

public class TweenExample3 extends AJExample
{
	public static final String NAME = "TweenExample 3";
	public static final String DESCRIPTION = "Description";
	public static final String EXAMPLE_SRC = "https://code.google.com/p/gwt-actionjava/source/browse/trunk/aj-examples/aj-examples-basics/src/main/java/net/atremmedia/gwt/actionjava/examples/tween/samples/TweenExample3.java";

	private Shape testFigure;

	public TweenExample3(AJExampleOverview base)
	{
		super(NAME, DESCRIPTION, EXAMPLE_SRC, base);
	}

	@Override
	public void run()
	{
		// Trace.setVisible(false);

		testFigure = new Shape();
		Graphics graphs = testFigure.getGraphics();
		graphs.beginFill(Color.getRGB(0xFF0000));
		graphs.drawCircle(50, 50, 50);
		graphs.endFill();
		// testFigure.setCacheAsBitmap(true);

		addChild(testFigure);
		// TweenLite.to(Manifest.create(testFigure, "y:500, x:500", 2).setEase(ElasticOut.ease).setReversed(true));
	}
}
